import {requestClient} from "#/api/request";
import type {PageUserVo, AddUserBo, PageRequest, PageUserSo} from "#/api/common";


export async function pageUserApi(
  data: PageRequest<PageUserSo>,
) {
  return requestClient.post<PageUserVo[]>('/user/list', data);
}

export async function addUserApi(
  data: AddUserBo,
) {
  return requestClient.post<boolean>('/user/add', data);
}

export async function delUserApi(
  data: any,
) {
  return requestClient.delete<boolean>('/user/delete', {
    params: {
      ...data
    }
  });
}
